import sys,os
from PySide6.QtWidgets import QApplication,QDialog,QMessageBox
from views.login.loginMain import LoginView
from settings.create_tables import create_tables

class LoginMain(LoginView):
    def __init__(self):
        super().__init__()

def makedatadir():
    if not os.path.exists('data'):
        os.mkdir('data')

if __name__ == "__main__":
    makedatadir()
    create_tables()
    app = QApplication(sys.argv)
    w = LoginMain()
    w.show()
    sys.exit(app.exec())